package common;

import java.util.List;


public class AlphaNode extends Node {	
	private WorkingAlphaNode workingAlphaNode;
	
	public AlphaNode(){
		workingAlphaNode = new WorkingAlphaNode();
		workingAlphaNode.setAlphaNode(this);
	}
	public WorkingAlphaNode getWorkingAlphaNode() {
		return workingAlphaNode;
	}
	public void setWorkingAlphaNode(WorkingAlphaNode workingAlphaNode) {
		this.workingAlphaNode = workingAlphaNode;
	}	
	public String toString(){
		String result = "("+this.getClass().getName()+"@"+Integer.toHexString(System.identityHashCode(this))+")";
		return result + "  " + name + "\\ " + key + "=" + value + "\n\t" + workingAlphaNode.toString();
	}	
	public void linkBethaMemory(BethaNode betha){
		workingAlphaNode.addBethaNode(betha);
	}	
	public List<Node> updateState(String value){
		return workingAlphaNode.updateState(value);
	}
}
